package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_OfflinePurchaseInStorage", catalog="Id")
public class TcgOfflinePurchaseInStorage extends BaseEntity<TcgOfflinePurchaseInStorage> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="AliLogisticsBillNo", nameJava="aliLogisticsBillNo", typeDataBase="varchar")
	private String aliLogisticsBillNo;
	@YsField(nameDataBase="AliLogisticsPlace", nameJava="aliLogisticsPlace", typeDataBase="varchar")
	private String aliLogisticsPlace;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="SubName", nameJava="subName", typeDataBase="varchar")
	private String subName;
	@YsField(nameDataBase="ProductImgOne", nameJava="productImgOne", typeDataBase="varchar")
	private String productImgOne;
	@YsField(nameDataBase="ProductImgTwo", nameJava="productImgTwo", typeDataBase="varchar")
	private String productImgTwo;
	@YsField(nameDataBase="ProductImgThree", nameJava="productImgThree", typeDataBase="varchar")
	private String productImgThree;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="SpNumber", nameJava="spNumber", typeDataBase="int")
	private Integer spNumber;
	@YsField(nameDataBase="SubBomNumber", nameJava="subBomNumber", typeDataBase="decimal")
	private BigDecimal subBomNumber;
	@YsField(nameDataBase="JgSl", nameJava="jgSl", typeDataBase="int")
	private Integer jgSl;
	@YsField(nameDataBase="SubPurchasePrice", nameJava="subPurchasePrice", typeDataBase="decimal")
	private BigDecimal subPurchasePrice;
	@YsField(nameDataBase="SubStorageNum", nameJava="subStorageNum", typeDataBase="int")
	private Integer subStorageNum;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="PurchaseOrderSonId", nameJava="purchaseOrderSonId", typeDataBase="bigint")
	private Long purchaseOrderSonId;
	@YsField(nameDataBase="PurchaseOrderGoodsId", nameJava="purchaseOrderGoodsId", typeDataBase="bigint")
	private Long purchaseOrderGoodsId;
	@YsField(nameDataBase="StorageStatus", nameJava="storageStatus", typeDataBase="tinyint")
	private Integer storageStatus;
	@YsField(nameDataBase="AssembledStatus", nameJava="assembledStatus", typeDataBase="tinyint")
	private Integer assembledStatus;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="AuditingUserId", nameJava="auditingUserId", typeDataBase="varchar")
	private String auditingUserId;
	@YsField(nameDataBase="DocumentSource", nameJava="documentSource", typeDataBase="tinyint")
	private Integer documentSource;
	@YsField(nameDataBase="PrintStatus", nameJava="printStatus", typeDataBase="tinyint")
	private Integer printStatus;
	@YsField(nameDataBase="GenerateStatus", nameJava="generateStatus", typeDataBase="tinyint")
	private Integer generateStatus;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgOfflinePurchaseInStorage setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgOfflinePurchaseInStorage setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getAliLogisticsBillNo() {
		return aliLogisticsBillNo;
	}
	public TcgOfflinePurchaseInStorage setAliLogisticsBillNo(String aliLogisticsBillNo) {
		this.aliLogisticsBillNo = aliLogisticsBillNo;
		return this;
	}
	public String getAliLogisticsPlace() {
		return aliLogisticsPlace;
	}
	public TcgOfflinePurchaseInStorage setAliLogisticsPlace(String aliLogisticsPlace) {
		this.aliLogisticsPlace = aliLogisticsPlace;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TcgOfflinePurchaseInStorage setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TcgOfflinePurchaseInStorage setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TcgOfflinePurchaseInStorage setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public String getSubName() {
		return subName;
	}
	public TcgOfflinePurchaseInStorage setSubName(String subName) {
		this.subName = subName;
		return this;
	}
	public String getProductImgOne() {
		return productImgOne;
	}
	public TcgOfflinePurchaseInStorage setProductImgOne(String productImgOne) {
		this.productImgOne = productImgOne;
		return this;
	}
	public String getProductImgTwo() {
		return productImgTwo;
	}
	public TcgOfflinePurchaseInStorage setProductImgTwo(String productImgTwo) {
		this.productImgTwo = productImgTwo;
		return this;
	}
	public String getProductImgThree() {
		return productImgThree;
	}
	public TcgOfflinePurchaseInStorage setProductImgThree(String productImgThree) {
		this.productImgThree = productImgThree;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcgOfflinePurchaseInStorage setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public Integer getSpNumber() {
		return spNumber;
	}
	public TcgOfflinePurchaseInStorage setSpNumber(Integer spNumber) {
		this.spNumber = spNumber;
		return this;
	}
	public BigDecimal getSubBomNumber() {
		return subBomNumber;
	}
	public TcgOfflinePurchaseInStorage setSubBomNumber(BigDecimal subBomNumber) {
		this.subBomNumber = subBomNumber;
		return this;
	}
	public Integer getJgSl() {
		return jgSl;
	}
	public TcgOfflinePurchaseInStorage setJgSl(Integer jgSl) {
		this.jgSl = jgSl;
		return this;
	}
	public BigDecimal getSubPurchasePrice() {
		return subPurchasePrice;
	}
	public TcgOfflinePurchaseInStorage setSubPurchasePrice(BigDecimal subPurchasePrice) {
		this.subPurchasePrice = subPurchasePrice;
		return this;
	}
	public Integer getSubStorageNum() {
		return subStorageNum;
	}
	public TcgOfflinePurchaseInStorage setSubStorageNum(Integer subStorageNum) {
		this.subStorageNum = subStorageNum;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TcgOfflinePurchaseInStorage setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TcgOfflinePurchaseInStorage setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Long getPurchaseOrderSonId() {
		return purchaseOrderSonId;
	}
	public TcgOfflinePurchaseInStorage setPurchaseOrderSonId(Long purchaseOrderSonId) {
		this.purchaseOrderSonId = purchaseOrderSonId;
		return this;
	}
	public Long getPurchaseOrderGoodsId() {
		return purchaseOrderGoodsId;
	}
	public TcgOfflinePurchaseInStorage setPurchaseOrderGoodsId(Long purchaseOrderGoodsId) {
		this.purchaseOrderGoodsId = purchaseOrderGoodsId;
		return this;
	}
	public Integer getStorageStatus() {
		return storageStatus;
	}
	public TcgOfflinePurchaseInStorage setStorageStatus(Integer storageStatus) {
		this.storageStatus = storageStatus;
		return this;
	}
	public Integer getAssembledStatus() {
		return assembledStatus;
	}
	public TcgOfflinePurchaseInStorage setAssembledStatus(Integer assembledStatus) {
		this.assembledStatus = assembledStatus;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TcgOfflinePurchaseInStorage setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public String getAuditingUserId() {
		return auditingUserId;
	}
	public TcgOfflinePurchaseInStorage setAuditingUserId(String auditingUserId) {
		this.auditingUserId = auditingUserId;
		return this;
	}
	public Integer getDocumentSource() {
		return documentSource;
	}
	public TcgOfflinePurchaseInStorage setDocumentSource(Integer documentSource) {
		this.documentSource = documentSource;
		return this;
	}
	public Integer getPrintStatus() {
		return printStatus;
	}
	public TcgOfflinePurchaseInStorage setPrintStatus(Integer printStatus) {
		this.printStatus = printStatus;
		return this;
	}
	public Integer getGenerateStatus() {
		return generateStatus;
	}
	public TcgOfflinePurchaseInStorage setGenerateStatus(Integer generateStatus) {
		this.generateStatus = generateStatus;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgOfflinePurchaseInStorage setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgOfflinePurchaseInStorage setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgOfflinePurchaseInStorage setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgOfflinePurchaseInStorage tcgOfflinePurchaseInStorage(
		String bid,
		String aliLogisticsBillNo,
		String aliLogisticsPlace,
		String productCode,
		String productName,
		String subCode,
		String subName,
		String productImgOne,
		String productImgTwo,
		String productImgThree,
		String vgsbm,
		Integer spNumber,
		BigDecimal subBomNumber,
		Integer jgSl,
		BigDecimal subPurchasePrice,
		Integer subStorageNum,
		Long stockControlId,
		String chw,
		Long purchaseOrderSonId,
		Long purchaseOrderGoodsId,
		Integer storageStatus,
		Integer assembledStatus,
		Date auditingTime,
		String auditingUserId,
		Integer documentSource,
		Integer printStatus,
		Integer generateStatus,
		Integer status
			) {
		TcgOfflinePurchaseInStorage entity = new TcgOfflinePurchaseInStorage();
		entity.setBid(bid);
		entity.setAliLogisticsBillNo(aliLogisticsBillNo);
		entity.setAliLogisticsPlace(aliLogisticsPlace);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setSubCode(subCode);
		entity.setSubName(subName);
		entity.setProductImgOne(productImgOne);
		entity.setProductImgTwo(productImgTwo);
		entity.setProductImgThree(productImgThree);
		entity.setVgsbm(vgsbm);
		entity.setSpNumber(spNumber);
		entity.setSubBomNumber(subBomNumber);
		entity.setJgSl(jgSl);
		entity.setSubPurchasePrice(subPurchasePrice);
		entity.setSubStorageNum(subStorageNum);
		entity.setStockControlId(stockControlId);
		entity.setChw(chw);
		entity.setPurchaseOrderSonId(purchaseOrderSonId);
		entity.setPurchaseOrderGoodsId(purchaseOrderGoodsId);
		entity.setStorageStatus(storageStatus);
		entity.setAssembledStatus(assembledStatus);
		entity.setAuditingTime(auditingTime);
		entity.setAuditingUserId(auditingUserId);
		entity.setDocumentSource(documentSource);
		entity.setPrintStatus(printStatus);
		entity.setGenerateStatus(generateStatus);
		entity.setStatus(status);
		return entity;
	}
}